
package com.landray.kmss.km.plmtwo.webservice;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.4.2
 * 2021-06-07T17:13:41.020+08:00
 * Generated source version: 2.4.2
 * 
 */
public final class IKmPlmtwoMainWebServiceService_IKmPlmtwoMainWebServiceServicePort_Client {

    private static final QName SERVICE_NAME = new QName("http://webservice.plmtwo.km.kmss.landray.com/", "IKmPlmtwoMainWebServiceServiceService");

    private IKmPlmtwoMainWebServiceService_IKmPlmtwoMainWebServiceServicePort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = IKmPlmtwoMainWebServiceServiceService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        IKmPlmtwoMainWebServiceServiceService ss = new IKmPlmtwoMainWebServiceServiceService(wsdlURL, SERVICE_NAME);
        IKmPlmtwoMainWebServiceService port = ss.getIKmPlmtwoMainWebServiceServicePort();  
        
        {
        System.out.println("Invoking toYesV...");
        java.lang.String _toYesV_arg0 = "";
        java.lang.String _toYesV_arg1 = "";
        java.lang.String _toYesV_arg2 = "";
        try {
            java.lang.String _toYesV__return = port.toYesV(_toYesV_arg0, _toYesV_arg1, _toYesV_arg2);
            System.out.println("toYesV.result=" + _toYesV__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking setFileValue...");
        java.util.List<com.landray.kmss.km.plmtwo.webservice.AttachmentForm> _setFileValue_arg0 = null;
        java.lang.String _setFileValue_arg1 = "";
        java.lang.String _setFileValue_arg2 = "";
        java.lang.String _setFileValue_arg3 = "";
        try {
            java.util.List<com.landray.kmss.km.plmtwo.webservice.AttachmentForm> _setFileValue__return = port.setFileValue(_setFileValue_arg0, _setFileValue_arg1, _setFileValue_arg2, _setFileValue_arg3);
            System.out.println("setFileValue.result=" + _setFileValue__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking getById...");
        java.lang.String _getById_arg0 = "";
        try {
            java.lang.String _getById__return = port.getById(_getById_arg0);
            System.out.println("getById.result=" + _getById__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking saveXML...");
        java.lang.String _saveXML_arg0 = "";
        try {
            java.lang.String _saveXML__return = port.saveXML(_saveXML_arg0);
            System.out.println("saveXML.result=" + _saveXML__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking save...");
        com.landray.kmss.km.plmtwo.webservice.KmPlmtwoMainParamterForm _save_arg0 = new com.landray.kmss.km.plmtwo.webservice.KmPlmtwoMainParamterForm();
        try {
            java.lang.String _save__return = port.save(_save_arg0);
            System.out.println("save.result=" + _save__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking dealStatus...");
        java.lang.String _dealStatus_arg0 = "";
        java.lang.String _dealStatus_arg1 = "";
        try {
            java.lang.String _dealStatus__return = port.dealStatus(_dealStatus_arg0, _dealStatus_arg1);
            System.out.println("dealStatus.result=" + _dealStatus__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking update...");
        com.landray.kmss.km.plmtwo.webservice.KmPlmtwoMainParamterForm _update_arg0 = new com.landray.kmss.km.plmtwo.webservice.KmPlmtwoMainParamterForm();
        try {
            java.lang.String _update__return = port.update(_update_arg0);
            System.out.println("update.result=" + _update__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking getDealLog...");
        java.lang.String _getDealLog_arg0 = "";
        try {
            java.lang.String _getDealLog__return = port.getDealLog(_getDealLog_arg0);
            System.out.println("getDealLog.result=" + _getDealLog__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }

        System.exit(0);
    }

}
